package com.tvpush.manage.core.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ouyangzn
 * @since 2019-03-22
 */
@Data
@Accessors(chain = true)
@TableName("tp_ally_info")
public class AllyInfo extends Model<AllyInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 盟友ID
     */
    @TableField("ally_id")
    private String allyId;
    /**
     * 盟友名称
     */
    @TableField("ally_name")
    private String allyName;
    /**
     * 手机号码
     */
    private String phone;
    /**
     * 微信号
     */
    private String wechat;
    /**
     * QQ号
     */
    private String qq;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 模板ID
     */
    @TableField("template_id")
    private Integer templateId;
    /**
     * 所在城市
     */
    @TableField("city_id")
    private Integer cityId;
    /**
     * 详细地址
     */
    private String address;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 状态（上架、下架）
     */
    private Long status;


    public static final String ID = "id";

    public static final String ALLY_ID = "ally_id";

    public static final String ALLY_NAME = "ally_name";

    public static final String PHONE = "phone";

    public static final String WECHAT = "wechat";

    public static final String QQ = "qq";

    public static final String EMAIL = "email";

    public static final String TEMPLATE_ID = "template_id";

    public static final String CITY_ID = "city_id";

    public static final String ADDRESS = "address";

    public static final String REMARK = "remark";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String STATUS = "status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
